home *** CD-ROM | disk | FTP | other *** search
- From: Stephen Usher <Stephen.Usher@earth.ox.ac.uk>
- Subject: Re: MiNT 1.10 re-sync
- Date: Fri, 17 Jun 1994 07:57:20 +0100 (BST)
- In-Reply-To: <9406162221.AA00392@jelal.north.de> from "Juergen Lock" at Jun 17, 94 00:21:42 am
- Mime-Version: 1.0
-
- >Michael Hohmuth writes:
- >
- >> > 6. and now the sticky text/fragmentation megapatch... does a few things:
- >>
- >> > . execv..() frees the old process memory before allocating the new ones,
- >> > and so no longer leaves holes in your memory map. this took a few
- >> > ugly hacks but i think its worth it :) the only visible change should
- >> > be when exec'ing a damaged binary the process gets killed, fixing that
- >> > would require reading executables twice.
- >>
- >> Well, that's fine with me, but I don't know whether this "non-posixish"
- >> behaviour is tolerable by all others? I guess so... as it effectively
- >> makes "damaged executable" equivalent to "executable crashed immediately
- >> after it has been run".
-
- Hmm.. I think this is bad as many programs have code after an exec which
- takes alternate action if the exec fails. The alternative, of course, is to
- copy the original text elsewhere before loading the new program if the new
- program's text is smaller or the same size as the original program. If the
- exec fails then it can be copied back and the process resumed. If the new
- process being exec()ed is larger than the original program (and the memory
- above the current program isn't free) then exec()ing as we do now would be
- no problem.
-
- The only sure way to stop memory fragmentation is to start using paged
- memory management. This, of course, can only be done on the 68030 and above.
-
- > or whats on systems that demand-page text instead of loading it all at
- >once... do they always check the entire file before?
- >>
- >> Opinions?
- >
- > should there be some flag to turn it off? in mint.cnf?
- >>
- >> Michael
- > cheers
- > Juergen
- >--
- >J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
- > ...ohne Gewehr
- >PGP public key fingerprint = 8A 18 58 54 03 7B FC 12 1F 8B 63 C7 19 27 CF DA
- >
-
- Steve
-
- --
- ---------------------------------------------------------------------------
- Computer Systems Administrator, Dept. of Earth Sciences, Oxford University.
- E-Mail: steve@uk.ac.ox.earth (JANET) steve@earth.ox.ac.uk (Internet).
- Tel:- Oxford (0865) 282110 (UK) or +44 865 282110 (International).
-